from django.urls import re_path
from . import views

urlpatterns = [
    # 图形验证码
    re_path(r'^api/v1.0/imagecode/$', views.ImageVerifyView.as_view()),
    # 短信验证码
    re_path(r'^api/v1.0/sms/$', views.SMSVerifyView.as_view()),
    # 注册
    re_path(r'^api/v1.0/users/$', views.RegisterView.as_view()),
    # 登录
    re_path(r'^api/v1.0/session/$', views.LoginView.as_view()),
    # 个人中心
    re_path(r'^api/v1.0/user/$', views.UserInfoView.as_view()),
    # 修改用户名
    re_path(r'^api/v1.0/user/name/$', views.UpdateUsernameView.as_view()),
    # 用户实名认证
    re_path(r'^api/v1.0/user/auth/$', views.IDCardView.as_view()),
]
